package community.hospital.common;

import java.util.concurrent.TimeUnit;

/**
 * @Author：ydj
 * @Date：2023/1/21 16:53
 */
public class RedisConstant {
    public static final String SPLIT = ":";
    public static final String LOGIN_USER = "login" + SPLIT + "user";
    public static final String QUERY_USER_CACHE = "query"+SPLIT+"user";
    public static final String PER_HOUR_VISITS = "per" + SPLIT + "hour" + SPLIT + "visits";
    public static final String PER_DAY_VISITS = "per" + SPLIT + "day" + SPLIT + "visits";
    public static final Long DEFAULT_CACHE_TIME = 1800L;
    public static final TimeUnit DEFAULT_TIME_UNIT = TimeUnit.SECONDS;
    /**
     * redis中用户持久化信息  7天
     */
    public static final Long USER_PERSISTENCE_TIME = 7 *24 * 60* 60L;


}
